package com.success.application.shop.holder;


import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.success.application.base.BaseHolder;
import com.success.application.myapplication.R;
import com.success.application.shop.bean.Join;
import butterknife.Bind;

/**
 * Created by ChrisWong on 2017/1/17.
 */

public class ActivityListHolder extends BaseHolder<Join> {
    private Join mjoin;
    @Bind(R.id.iv_join_face)
    //报名参加的头像
    ImageView iv_join_face;
    @Bind(R.id.tv_join_name)
    TextView tv_join_name;//报名人名字
    @Bind(R.id.tv_join_time)
    TextView tv_join_time;//报名人时间
    @Bind(R.id.tv_join_sex)
    TextView tv_join_sex;//报名人性别
    @Bind(R.id.tv_join_age)
    TextView tv_join_age;//报名人年纪
    @Bind(R.id.tv_join_biaoshi)
    TextView tv_join_biaoshi;//标识
    public ActivityListHolder(View itemView) {
        super(itemView);
    }

    @Override
    public void bindItem(Join join) {
        mjoin = join;
        tv_join_name.setText(mjoin.getNc());
        tv_join_age.setText(mjoin.getNl());
        tv_join_biaoshi.setText(mjoin.getType());
        tv_join_time.setText(mjoin.getBmsj());
//        Glide.with(iv_consult_face.getContext()).load(muser.getJzxx_jztb()).into(iv_consult_face);
//        tv_activity_title.setText(mjob.getJzxx_zt());
//        tv_activity_time.setText(mjob.getJzxx_fbsj());
//        tv_address.setText(mjob.getJzxx_fzr());
//        //活动备注==活动详情 html的文本转换
//        tv_content.setText(mjob.getJzxx_bz());
        //设置文本信息
    }
    @Override
    public void onClick(View v) {
//        TestDetailActivity.show(v.getContext(), mConsult);
    }

    @Override
    public boolean onLongClick(View v) {
//        Toast.makeText(v.getContext(),
//                mConsult.getNc()+ "长按事件触发！", Toast.LENGTH_SHORT)
//                .show();
        return true;
    }
}
